Ext.define("MyApp.store.NavigationStore",{
	extend:'Ext.data.TreeStore',
	defaultRootId : '0',
	model:'MyApp.model.NavigationEntity',
	//sourcenodeParam:'id',
	remoteSort : false,
	proxy:{
		type:'ajax',
		api : {
					read : 'navigation/getAllNavigation',
					update : 'navigation/updateNavigation',
					create : 'navigation/addNavigation',
					destroy : 'navigation/destroyNavigation'
		},
		reader:'json'
	} ,
	//排序
	sorters  :{property: "id", direction: "ASC"},
	extraParams:{
    },
	listeners : {
    /* "expand":function(node){
      }*/
	}
});